import {
  ITextConfigType,
  INumberConfigType,
  TTextDefaultType,
  TNumberDefaultType,
} from '@/components/FormComponents/types';

export type TAudioEditData = Array<INumberConfigType | ITextConfigType>;
export interface IAudioConfig {
  name: TTextDefaultType;
  height: TNumberDefaultType;
  path: TTextDefaultType;
}

export interface IAudioSchema {
  editableData: TAudioEditData;
  config: IAudioConfig;
}

const Audio: IAudioSchema = {
  editableData: [
    {
      key: 'name',
      name: '音频名称',
      type: 'Text',
    },
    {
      key: 'height',
      name: '音频高度',
      type: 'Number',
    },
    {
      key: 'path',
      name: '音频链接',
      type: 'Text',
    },
  ],
  config: {
    name: '第一课时音频资源',
    height: 32,
    path: 'https://public.data.dev.dt-pf.com/platform-file/5f4f052c9c417a29b83702c4/eb/06/5651e8cd-a58e-4062-a790-5f0ded5f5245/source.mp3',
  },
};

export default Audio;
